@charset "utf-8";

$sidenav-content-bg: #0d447b;

.sidenav {
  position: absolute;
  bottom: 0;
  z-index: 400;
  height: calc(100% - 2rem);
  width: 225px;
  overflow: visible;
  color: $white-nature;
}

.sidenav-tabs {
  position: absolute;
  z-index: 450;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  bottom: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidenav-tab {
  position: relative;
  padding: 1rem 1.5rem;
  background: $navbar-primary;
  border-bottom: 1px solid $navbar-primary-border;
  width: calc(100% - 8px);
  
  &.disabled {
    background: lighten($navbar-primary, 3%);
  }
  
  &:last-child {
    border-bottom: none;
  }
  
  &:after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 100%;
    top: 50%;
    background: $navbar-primary-link-hover-bg;
    transform: rotate(45deg) translate(-64%, 0);
    display: none;
  }
  
  &:not(.disabled) {
    &.active {
      background: $navbar-primary-link-hover-bg;
      
      &:after {
        display: block;
      }
    }
  }
}

.sidenav-tab-title {
  font-size: 2rem;
}

.sidenav-tab-links {
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
  
  & > li {
    display: inline-block;
    
    & > a {
      padding: .5rem;
      color: $navbar-primary-link-color;
      
      &:hover,
      &:focus,
      &:active,
      &.active {
        color: $navbar-primary-link-hover-color;
      }
    }
  }
}

// sidenav content
.sidenav-tab-contents {
  position: absolute;
  padding: 0;
  margin: 0 0 0 -8px;
  list-style: none;
  left: 100%;
  top: 0;
  width: 648px;
}

.sidenav-tab-content {
  position: absolute;
  background: $sidenav-content-bg;
  color: $navbar-primary-link-color;
  padding: 1rem 1.5rem 2rem;
  transition: transform 333ms, opacity 333ms;
  opacity: 0;
  transform: translate(-60px, 0);
  pointer-events: none;
  z-index: -1;
  
  &.show {
    opacity: 1;
    transform: translate(0, 0);
    pointer-events: auto;
    z-index: inherit;
  }
}

.sidenav-subemnu {
  margin-top: 1.5rem;
}

.sidenav-submenu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  
  & > li {
    display: inline-block;
  }
  
  a {
    color: $navbar-primary-link-color;
    margin-right: .5rem;
    
    &:hover,
    &:focus,
    &:active {
      color: $navbar-primary-link-hover-color;
    }
  }
}